home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
umich
/
misc
/
greeting.lzh
/
GREETING.INF
next >
Wrap
Text File
|
1992-06-07
|
8KB
|
172 lines
Frank Bell 20.50.32 07.06.92 GREETING.PRG Version 1.03
GREETING.PRG is a small Auto folder program to display a short greeting
message when you boot up your computer or do a reset (warm or cold).
For some reason I like to see 'Good Morning Mr.Bell' when I turn my machine
on, no matter what time of day it is. Before, my little HD Wait program
would display the message - but, as I now use TOS 2.06, I have no need for
Wait.Prg anymore. So I decided to write a replacement greeting program.
While I was busy writing my one liner, other ideas popped into my head:
blanking the screen first, printing a blank line or two before the message
(or after the message for that matter), and why not different messages
depending on the time of day, and why so fast? (others should see it too).
So I added a lot of options (commands) along with a lot of different
messages.
Just a short note - this program is _not_ an alarm or a alarm clock program.
It only checks the time and the GREETING.INF file when called, or
started, or whatever. This program is also not an accessory.
Anyway:
This archive and the two files, see below, are FreeWare, sort of Public
Domain, and can be given away freely, put up on BBSs and generally passed
around to your friends and enemies. And I have nothing against Magazine
diskettes or Diskette Magazines for that matter - but please send me a copy.
I don't want to see it on any "pay PD software house diskettes" without my
permission - first! And nothing commercial either. Remember, GREETING.PRG
is copywrited by me.
So, now on to GREETINGs.
This archive consist of two files: GREETING.PRG and GREETING.INF.
GREETING.PRG should be put someplace in your boot drive Auto folder, I don't
care where, but others might. GREETING.INF, which is both option file and
instruction file, should go into the same folder or directory as the program
or at least the same Root. Please don't change the name of GREETING.INF -
everything is hardcoded.
A few options are needed first (otherwise you'll always see 'Good Morning Mr.
Bell' which may or may not fit. Then copy this file (GREETING.INF), or
an extract of it, into the same folder as the program or the same root
directory as the program.
The options:
Your system start up greeting message and commands use the following format:
">nnmmmm..." for messages and ">aaaa" for commands. A message is what you
want displayed on your screen and commands help control screen output a
little bit.
">" Indicates a message or command line. Must begin on position one
or all the way over to the left of the file. All other lines in
this text are ignored - as far as the program is concerned.
"nn" Indicates a message line and the times the message should be
displayed (uses 24 hour clock format) and is compared against the
system clock. If this number is 'equal to' or is 'less then' your
system hour, then the message is displayed. The last message
processed, which meets these requirements, is used (if more then
one message is present, then the last one is displayed). If no
message meets the above test, then the first message found is
displayed - whatever it is. There is no limit to the number of
messages you can put into this file - your doing the typing.
"mmmm..." The message, don't make it too long, you have to read it.
"aaaa" The commands, see below.
Message examples:
>02 Its getting real late baby
>04 Its late Mr.Bell, you better get back in bed
>05 Up Early I see...
>06 Good Morning Mr.Bell
>07 Your late for work again...
>11 Good Morning Mr.Bell
>12 Good Afternoon Mr.Bell
>18 Good Evening Frank
>19 Mahlzeit
>20 Good Evening Mr.Bell
>23 You going to work all night again?
Command examples (not case sensitive - UPPER and lower or mixed cases are
allowed):
Attention getters -
>BELL :DingDong just before the message is displayed (not yet supported).
>PING :PING just before the message is displayed.
(only one of each is allowed or used, sorry)
Clear Screen -
>CSB :CLEAR SCREEN BEFORE displaying message.
>CSA :CLEAR SCREEN AFTER displaying message and after printing
BLANK LINES and WAITing - see below.
Blank Lines (plural) -
>BLB :Print one BLANK LINE BEFORE displaying message.
>BLA :Print one BLANK LINE AFTER displaying message.
(more than one ">BLB" and/or ">BLA" is allowed.)
Waiting -
>WAIT :WAIT one second after displaying the message.
(more than one ">WAIT" is allowed)
Extras -
>MEM :Display current free system MEMORY in Kilobytes.
>DATE :Display current system DATE, also see date format below.
>TIME :Display current system TIME.
(these three items, when present, are displayed along with your
message and to the right of it - on the same line. Any or all
may be used or not used - they appear in the above order left to
right on the screen.)
Date Format (used with DATE Extras, above) -
>BRD :Germany - "TT.MM.JJ" or "DD.MM.YY".
>USA :North America - "MM/DD/YY".
>GB :Great Britain - "DD/MM/YY".
(this code selects the date format when the date is displayed.
The last code found, when more then one is present, is used.
If no country code is found, then the German format is used.
Time is always displayed as "HH:MM" when time is displayed.)
(I use the above country codes because they are the most widely known
and cover most date format possibilities - by no means do I mean to
discriminate anybody's homeland, country, or language. For example:
Canada uses the same date format as the US, France uses the same
format as England, Austria the same as Germany...)
The order in which the messages and commands are listed doesn't matter too
much, although the messages should be listed in assending sequence by 'time'
for easier reading and editing (by you).
I can be contacted as Frank Bell via the following:
Europe -
FidoNet as 2:310/12.24@fidonet.org
NeST as 90:8060/101.24@nest.ftn
MAUS Net as FRANK BELL @ A2W
at work as What's that guy's name again?
at home as Darling or Liebling or 'that no good...' (see below)
America -
GEnie as F.BELL1
CIS as 100034.104 (I hope that's not my password)
my mother's place as 'that no good tramp who never calls or writes'
or via snail mail - Frank Bell
Konstantingasse 7/1/5
1160 Vienna, Austria
Europe
Your comments, ideas, bug reports, etc. are welcome.
Greetings,
Frank... 20.50.32 07.06.92
P.S. Before I forget. GREETING.PRG was written and compiled in Omikron
BASIC 3.54. Heck, this text was written using Omikron's Mortimer Plus.
The source code is available for those who want it - it will only cost
a diskette or whatever a diskette cost these days (unless you have
something to trade).
Future versions will include more stuff such as DATE and TIME checking
with the possibility to enter the correct date and/or time when your
system date and/or time is incorrect, or funny, or non-existing.